Package lemon :: Package external :: Package Cheetah :: Module FileUtils :: Class _GenSubberFunc
[show private | hide private]
[frames | no frames]

Class _GenSubberFunc


Converts a 'sub' string in the form that one feeds to re.sub (backrefs,
groups, etc.) into a function that can be used to do the substitutions in
the FindAndReplace class.

Method Summary
  __init__(self, replaceStr)
  addChunk(self, chunk)
  advance(self, offset)
  atEnd(self)
  code(self)
  codeBody(self)
  eatBackref(self)
  eatGroup(self)
  eatStrConst(self)
  getBackref(self)
  getGroup(self)
  matchBackref(self)
  matchGroup(self)
  parse(self)
  pos(self)
  readTo(self, to, start)
  setPos(self, pos)
  src(self)
  subberFunc(self)

Class Variable Summary
SRE_Pattern backrefRE = \\([1-9][0-9]*)
SRE_Pattern groupRE = \\g<([a-zA-Z_][a-zA-Z_]*)>

Class Variable Details

backrefRE

Type:
SRE_Pattern
Value:
\\([1-9][0-9]*)                                                        

groupRE

Type:
SRE_Pattern
Value:
\\g<([a-zA-Z_][a-zA-Z_]*)>                                             

Generated by Epydoc 2.0 on Mon Nov 10 15:08:06 2003 http://epydoc.sf.net